package com.yunhe.common.model.base;

import com.yunhe.common.model.authority.FirmDTO;
import com.yunhe.common.model.authority.StationDTO;
import com.yunhe.common.model.authority.UserDTO;

import java.util.List;

/**
 * 异常通知配置
 * @author liuronglei
 */
public class AlarmNotifyConfigDTO {
    private Long id;
    /**
     * 类型
     * 0:单位；1:个人
     */
    private Integer type;
    /**
     * 状态
     * 0:关闭；1:打开
     */
    private Integer status;
    /**
     * 全部电站开关
     */
    private Boolean isAllStation;
    /**
     * 适用电站
     */
    private List<StationDTO> stations;
    /**
     * 异常通知类型
     */
    private AlarmNotifyTypeDTO alarmNotifyType;
    /**
     * 异常级别
     */
    private AlarmLevelDTO alarmLevel;
    /**
     * 所属单位
     */
    private FirmDTO firm;
    /**
     * 所属个人
     */
    private UserDTO user;
    /**
     * 序号
     */
    private Long sn;
    /**
     * 关联的用户ID
     */
    private Long relatedUserId;
    /**
     * 关联的单位ID
     */
    private Long relatedFirmId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Boolean getIsAllStation() {
        return isAllStation == null ? false : isAllStation;
    }

    public void setIsAllStation(Boolean isAllStation) {
        this.isAllStation = isAllStation;
    }

    public List<StationDTO> getStations() {
        return stations;
    }

    public void setStations(List<StationDTO> stations) {
        this.stations = stations;
    }

    public AlarmNotifyTypeDTO getAlarmNotifyType() {
        return alarmNotifyType;
    }

    public void setAlarmNotifyType(AlarmNotifyTypeDTO alarmNotifyType) {
        this.alarmNotifyType = alarmNotifyType;
    }

    public AlarmLevelDTO getAlarmLevel() {
        return alarmLevel;
    }

    public void setAlarmLevel(AlarmLevelDTO alarmLevel) {
        this.alarmLevel = alarmLevel;
    }

    public FirmDTO getFirm() {
        return firm;
    }

    public void setFirm(FirmDTO firm) {
        this.firm = firm;
    }

    public UserDTO getUser() {
        return user;
    }

    public void setUser(UserDTO user) {
        this.user = user;
    }

    public Long getSn() {
        return sn;
    }

    public void setSn(Long sn) {
        this.sn = sn;
    }

    public Long getRelatedUserId() {
        return relatedUserId;
    }

    public void setRelatedUserId(Long relatedUserId) {
        this.relatedUserId = relatedUserId;
    }

    public Long getRelatedFirmId() {
        return relatedFirmId;
    }

    public void setRelatedFirmId(Long relatedFirmId) {
        this.relatedFirmId = relatedFirmId;
    }
}